home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980901-19981211
/
000274_news@newsmaster….columbia.edu _Fri Nov 6 15:30:56 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA21945
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 6 Nov 1998 15:30:52 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA15184
for kermit.misc@watsun; Fri, 6 Nov 1998 15:30:51 -0500 (EST)
Path: news.columbia.edu!panix!howland.erols.net!dca1-hub1.news.digex.net!digex!nntp.primenet.com!news.primenet.com!monty
From: Jim Monty <monty@primenet.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: sending variables on the command line
Date: 6 Nov 1998 20:30:34 GMT
Organization: Primenet
Lines: 52
Message-ID: <71vm9a$cqn$1@nnrp03.primenet.com>
References: <71810c$31v$1@supernews.com> <718456$a8l$1@apakabar.cc.columbia.edu> <71b0p0$idm$1@supernews.com> <71g2db$l03$1@post.servtech.com> <71ksse$6oh$1@apakabar.cc.columbia.edu>
NNTP-Posting-Host: usr01.primenet.com
X-Complaints-To: abuse@globalcenter.net
X-Posted-By: monty@206.165.6.201 (monty)
Xref: news.columbia.edu comp.protocols.kermit.misc:9479
Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
> <rchandra.spamguard@spamguard.letter.com> wrote:
> : Could you elaborate on the decision to use "="? I always thought
> : "--" would have been better, as many programs (at least in *IX
> : environments) use "--" to separate program options from program
> : arguments (that would have been my choice).
>
> No special reason. We (I) did this quite a while ago and had never seen
> any guidelines on this. Do you have a reference?
See URL <http://www.opengroup.org/onlinepubs/7908799/xbd/utilconv.html#usg>:
The Single UNIX Specification, Version 2
Copyright 1997 The Open Group
_________________________________________________________________
Utility Conventions
[...]
Utility Syntax Guidelines
The following guidelines are established for the naming of
utilities and for the specification of options, option-arguments
and operands.
[...]
Guideline 9:
All options should precede operands on the command line.
Guideline 10:
The argument -- should be accepted as a delimiter indicating
the end of options. Any following arguments should be treated
as operands, even if they begin with the "-" character. The --
argument should not be used as an option or as an operand.
Applications calling any utility with a first operand starting
with - should usually specify --, as indicated by Guideline 10,
to mark the end of the options. This is true even if the
SYNOPSIS in the XCU specification does not specify any options;
implementations may provide options as extensions to the XCU
specification. The standard utilities that do not support
Guideline 10 indicate that fact in the OPTIONS section of the
utility description.
[...]
--
Jim Monty
monty@primenet.com
Tempe, Arizona USA